package io.geekidea.boot.area.dto;

import lombok.Data;
import org.apache.commons.math3.ml.neuralnet.UpdateAction;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data

public class AreaDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 战区编号
     */
    @NotNull(groups = {UpdateAction.class},message = "战区编号不能为空")
    private Integer id;

    /**
     * 战区名称
     */
    @NotBlank(message = "战区名称不能为空")
    private String name;

    /**
     * 战区编码
     */
    @NotBlank(message = "战区编码不能为空")
    private String code;

    @NotBlank(message = "负责人不能为空")
    private String principal;

    @NotBlank(message = "联系电话不能为空")
    private String phoneNumber;

    @NotBlank(message = "战区状态不能为空")
    private String status;

}
